#include <p16f1455.h>

const int N = 100;
const int M = 1000;

foo(int n, int m)
{
    char a;
    if ( n > 1000 )
        n++;
    else
        n--;

    n += 0x00ff;

    if ( TMR1IF == TMR2IF ) n++;

    if ( M == N ) n++;
    if ( n == 10000 ) n--;
}